home *** CD-ROM | disk | FTP | other *** search
- diff -Pc3prb ram:old/findme.c ./findme.c
- *** ram:old/findme.c Sun Mar 11 02:29:49 2001
- --- ./findme.c Sat Jun 30 15:13:01 2001
- ***************
- *** 22,27 ****
- --- 22,33 ----
-
- #include "findme.h"
-
- + #ifdef AMIGA_COMPILE
- + #ifndef X_OK
- + #define X_OK 1
- + #endif
- + #endif
- +
- const char *
- findProgramPath (const char *argv0)
- {
- diff -Pc3prb ram:old/inttypes.h ./inttypes.h
- *** ram:old/inttypes.h Thu Jan 1 00:00:00 1970
- --- ./inttypes.h Fri Jun 29 19:24:58 2001
- ***************
- *** 0 ****
- --- 1,5 ----
- + #define uint64_t long long
- + #define uint32_t unsigned int
- + #define uint16_t unsigned short
- + #define uint8_t unsigned char
- + #define int16_t short
- diff -Pc3prb ram:old/popt.c ./popt.c
- *** ram:old/popt.c Sun Mar 11 02:29:49 2001
- --- ./popt.c Sat Jun 30 15:13:44 2001
- ***************
- *** 15,20 ****
- --- 15,24 ----
- #include <string.h>
- #include <unistd.h>
-
- + #ifdef AMIGA_COMPILE
- + #include <proto/dos.h>
- + #endif
- +
- #if HAVE_ALLOCA_H
- # include <alloca.h>
- #endif
- *************** execCommand (poptContext con)
- *** 272,278 ****
- --- 276,287 ----
- #endif
- #endif
-
- + #ifndef AMIGA_COMPILE
- execvp (argv[0], (char *const *) argv);
- + #else
- + printf("Executing: %s\n",argv[0]);
- + Execute(argv[0],0,0);
- + #endif
- }
-
- static const struct poptOption *
- diff -Pc3prb ram:old/poptconfig.c ./poptconfig.c
- *** ram:old/poptconfig.c Sun Mar 11 02:29:49 2001
- --- ./poptconfig.c Sat Jun 30 15:14:34 2001
- *************** poptReadDefaultConfig (poptContext con,
- *** 164,171 ****
- --- 164,173 ----
- rc = poptReadConfigFile (con, "/etc/popt");
- if (rc)
- return rc;
- + #ifndef AMIGA_COMPILE
- if (getuid () != geteuid ())
- return 0;
- + #endif
-
- if ((home = getenv ("HOME")))
- {
- diff -Pc3prb ram:old/snprintf.c ./snprintf.c
- *** ram:old/snprintf.c Thu Jan 1 00:00:00 1970
- --- ./snprintf.c Fri Jun 29 23:13:44 2001
- ***************
- *** 0 ****
- --- 1,13 ----
- + #include <stdio.h>
- + #include <stdarg.h>
- + #include <string.h>
- +
- + int snprintf(char *s,size_t size,const char *format,...)
- + { int retval;
- + va_list args;
- + va_start(args,format);
- + retval=vsnprintf(s,size,format,args);
- + va_end(args);
- + return retval;
- + }
- +
- diff -Pc3prb ram:old/vcd_types.h ./vcd_types.h
- *** ram:old/vcd_types.h Tue May 15 01:00:59 2001
- --- ./vcd_types.h Sat Jun 30 15:15:01 2001
- *************** typedef u_int64_t uint64_t;
- *** 44,49 ****
- --- 44,54 ----
- /* fixme */
- #endif /* HAVE_STDINT_H */
-
- + #ifdef AMIGA_COMPILE
- + #define UINT64_C(c) (unsigned long long)(c)
- + #define UINT32_C(c) (unsigned int)(c)
- + #endif
- +
- /* fix for bsdi... hope it works */
- #ifdef __bsdi__
- # define UINT32_C(c) c ## U
- diff -Pc3prb ram:old/vcdimager.c ./vcdimager.c
- *** ram:old/vcdimager.c Mon May 7 11:24:39 2001
- --- ./vcdimager.c Sat Jun 30 15:15:54 2001
- ***************
- *** 32,38 ****
- --- 32,40 ----
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- + #ifndef AMIGA_COMPILE
- #include <sys/mman.h>
- + #endif
- #include <sys/stat.h>
- #include <unistd.h>
-
- diff -Pc3prb ram:old/vsnprintf.c ./vsnprintf.c
- *** ram:old/vsnprintf.c Thu Jan 1 00:00:00 1970
- --- ./vsnprintf.c Fri Jun 29 23:21:08 2001
- ***************
- *** 0 ****
- --- 1,20 ----
- + #include <stdio.h>
- + #include <stdarg.h>
- + #include <string.h>
- +
- + int vsnprintf(char *str,size_t n,const char *fmt,va_list ap)
- + {
- + int ret;
- + FILE f;
- +
- + if ((int)n < 1)
- + return (EOF);
- + f._flags = __SWR | __SSTR;
- + f._bf._base = f._p = (unsigned char *)str;
- + f._bf._size = f._w = n - 1;
- + ret = vfprintf(&f, fmt, ap);
- + *f._p = 0;
- + return (ret);
- +
- + }
- +
-